
/**
 * This is a generated class and is not intended for modification.  
 */
package com.model.valueObjects
{
import com.adobe.fiber.styles.IStyle;
import com.adobe.fiber.styles.Style;
import com.adobe.fiber.styles.StyleValidator;
import com.adobe.fiber.valueobjects.AbstractEntityMetadata;
import com.adobe.fiber.valueobjects.AvailablePropertyIterator;
import com.adobe.fiber.valueobjects.IPropertyIterator;
import mx.events.ValidationResultEvent;
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.valueobjects.IModelType;
import mx.events.PropertyChangeEvent;

use namespace model_internal;

[ExcludeClass]
internal class _VoGoodsReceivedEntityMetadata extends com.adobe.fiber.valueobjects.AbstractEntityMetadata
{
    private static var emptyArray:Array = new Array();

    model_internal static var allProperties:Array = new Array("currency_name", "curr_received_qty", "pro_name", "total_qty", "cre_userid_fk", "vendor_ref_no", "part_number", "sc_fk", "map_do", "unit_price", "pro_description", "po_serialnumber", "sc_detserialnumber_fk", "currency_serialnumber_fk", "activestatus", "grn_detserialnumber", "current_rate", "goods_received_date", "gr_id", "client_name", "gr_serialnumber", "total_amount", "cre_datetime", "po_detserialnumber_fk", "po_id", "pro_total_price", "gr_gst", "balance_qty", "supplier_serialnumber_fk", "pro_serialnumber_fk", "gr_serialnumber_fk", "po_qty", "sales_con_code", "received_qty", "warehouse_serialnumber_fk");
    model_internal static var allAssociationProperties:Array = new Array();
    model_internal static var allRequiredProperties:Array = new Array("currency_name", "curr_received_qty", "pro_name", "total_qty", "cre_userid_fk", "vendor_ref_no", "part_number", "sc_fk", "map_do", "unit_price", "pro_description", "po_serialnumber", "sc_detserialnumber_fk", "currency_serialnumber_fk", "activestatus", "grn_detserialnumber", "current_rate", "goods_received_date", "gr_id", "client_name", "gr_serialnumber", "total_amount", "cre_datetime", "po_detserialnumber_fk", "po_id", "pro_total_price", "gr_gst", "balance_qty", "supplier_serialnumber_fk", "pro_serialnumber_fk", "gr_serialnumber_fk", "po_qty", "sales_con_code", "received_qty", "warehouse_serialnumber_fk");
    model_internal static var allAlwaysAvailableProperties:Array = new Array("currency_name", "curr_received_qty", "pro_name", "total_qty", "cre_userid_fk", "vendor_ref_no", "part_number", "sc_fk", "map_do", "unit_price", "pro_description", "po_serialnumber", "sc_detserialnumber_fk", "currency_serialnumber_fk", "activestatus", "grn_detserialnumber", "current_rate", "goods_received_date", "gr_id", "client_name", "gr_serialnumber", "total_amount", "cre_datetime", "po_detserialnumber_fk", "po_id", "pro_total_price", "gr_gst", "balance_qty", "supplier_serialnumber_fk", "pro_serialnumber_fk", "gr_serialnumber_fk", "po_qty", "sales_con_code", "received_qty", "warehouse_serialnumber_fk");
    model_internal static var guardedProperties:Array = new Array();
    model_internal static var dataProperties:Array = new Array("currency_name", "curr_received_qty", "pro_name", "total_qty", "cre_userid_fk", "vendor_ref_no", "part_number", "sc_fk", "map_do", "unit_price", "pro_description", "po_serialnumber", "sc_detserialnumber_fk", "currency_serialnumber_fk", "activestatus", "grn_detserialnumber", "current_rate", "goods_received_date", "gr_id", "client_name", "gr_serialnumber", "total_amount", "cre_datetime", "po_detserialnumber_fk", "po_id", "pro_total_price", "gr_gst", "balance_qty", "supplier_serialnumber_fk", "pro_serialnumber_fk", "gr_serialnumber_fk", "po_qty", "sales_con_code", "received_qty", "warehouse_serialnumber_fk");
    model_internal static var derivedProperties:Array = new Array();
    model_internal static var collectionProperties:Array = new Array("curr_received_qty", "pro_name", "part_number", "sc_fk", "unit_price", "pro_description", "po_serialnumber", "sc_detserialnumber_fk", "grn_detserialnumber", "po_detserialnumber_fk", "po_id", "pro_total_price", "balance_qty", "pro_serialnumber_fk", "gr_serialnumber_fk", "po_qty", "sales_con_code", "received_qty", "warehouse_serialnumber_fk");
    model_internal static var collectionBaseMap:Object;
    model_internal static var entityName:String = "VoGoodsReceived";
    model_internal static var dependentsOnMap:Object;
    model_internal static var dependedOnServices:Array = new Array();

    
    model_internal var _currency_nameIsValid:Boolean;
    model_internal var _currency_nameValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _currency_nameIsValidCacheInitialized:Boolean = false;
    model_internal var _currency_nameValidationFailureMessages:Array;
    
    model_internal var _curr_received_qtyIsValid:Boolean;
    model_internal var _curr_received_qtyValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _curr_received_qtyIsValidCacheInitialized:Boolean = false;
    model_internal var _curr_received_qtyValidationFailureMessages:Array;
    
    model_internal var _pro_nameIsValid:Boolean;
    model_internal var _pro_nameValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_nameIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_nameValidationFailureMessages:Array;
    
    model_internal var _vendor_ref_noIsValid:Boolean;
    model_internal var _vendor_ref_noValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _vendor_ref_noIsValidCacheInitialized:Boolean = false;
    model_internal var _vendor_ref_noValidationFailureMessages:Array;
    
    model_internal var _part_numberIsValid:Boolean;
    model_internal var _part_numberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _part_numberIsValidCacheInitialized:Boolean = false;
    model_internal var _part_numberValidationFailureMessages:Array;
    
    model_internal var _sc_fkIsValid:Boolean;
    model_internal var _sc_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _sc_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _sc_fkValidationFailureMessages:Array;
    
    model_internal var _unit_priceIsValid:Boolean;
    model_internal var _unit_priceValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _unit_priceIsValidCacheInitialized:Boolean = false;
    model_internal var _unit_priceValidationFailureMessages:Array;
    
    model_internal var _pro_descriptionIsValid:Boolean;
    model_internal var _pro_descriptionValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_descriptionIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_descriptionValidationFailureMessages:Array;
    
    model_internal var _po_serialnumberIsValid:Boolean;
    model_internal var _po_serialnumberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _po_serialnumberIsValidCacheInitialized:Boolean = false;
    model_internal var _po_serialnumberValidationFailureMessages:Array;
    
    model_internal var _sc_detserialnumber_fkIsValid:Boolean;
    model_internal var _sc_detserialnumber_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _sc_detserialnumber_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _sc_detserialnumber_fkValidationFailureMessages:Array;
    
    model_internal var _grn_detserialnumberIsValid:Boolean;
    model_internal var _grn_detserialnumberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _grn_detserialnumberIsValidCacheInitialized:Boolean = false;
    model_internal var _grn_detserialnumberValidationFailureMessages:Array;
    
    model_internal var _goods_received_dateIsValid:Boolean;
    model_internal var _goods_received_dateValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _goods_received_dateIsValidCacheInitialized:Boolean = false;
    model_internal var _goods_received_dateValidationFailureMessages:Array;
    
    model_internal var _gr_idIsValid:Boolean;
    model_internal var _gr_idValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _gr_idIsValidCacheInitialized:Boolean = false;
    model_internal var _gr_idValidationFailureMessages:Array;
    
    model_internal var _client_nameIsValid:Boolean;
    model_internal var _client_nameValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_nameIsValidCacheInitialized:Boolean = false;
    model_internal var _client_nameValidationFailureMessages:Array;
    
    model_internal var _cre_datetimeIsValid:Boolean;
    model_internal var _cre_datetimeValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _cre_datetimeIsValidCacheInitialized:Boolean = false;
    model_internal var _cre_datetimeValidationFailureMessages:Array;
    
    model_internal var _po_detserialnumber_fkIsValid:Boolean;
    model_internal var _po_detserialnumber_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _po_detserialnumber_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _po_detserialnumber_fkValidationFailureMessages:Array;
    
    model_internal var _po_idIsValid:Boolean;
    model_internal var _po_idValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _po_idIsValidCacheInitialized:Boolean = false;
    model_internal var _po_idValidationFailureMessages:Array;
    
    model_internal var _pro_total_priceIsValid:Boolean;
    model_internal var _pro_total_priceValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_total_priceIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_total_priceValidationFailureMessages:Array;
    
    model_internal var _balance_qtyIsValid:Boolean;
    model_internal var _balance_qtyValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _balance_qtyIsValidCacheInitialized:Boolean = false;
    model_internal var _balance_qtyValidationFailureMessages:Array;
    
    model_internal var _pro_serialnumber_fkIsValid:Boolean;
    model_internal var _pro_serialnumber_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_serialnumber_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_serialnumber_fkValidationFailureMessages:Array;
    
    model_internal var _gr_serialnumber_fkIsValid:Boolean;
    model_internal var _gr_serialnumber_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _gr_serialnumber_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _gr_serialnumber_fkValidationFailureMessages:Array;
    
    model_internal var _po_qtyIsValid:Boolean;
    model_internal var _po_qtyValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _po_qtyIsValidCacheInitialized:Boolean = false;
    model_internal var _po_qtyValidationFailureMessages:Array;
    
    model_internal var _sales_con_codeIsValid:Boolean;
    model_internal var _sales_con_codeValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _sales_con_codeIsValidCacheInitialized:Boolean = false;
    model_internal var _sales_con_codeValidationFailureMessages:Array;
    
    model_internal var _received_qtyIsValid:Boolean;
    model_internal var _received_qtyValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _received_qtyIsValidCacheInitialized:Boolean = false;
    model_internal var _received_qtyValidationFailureMessages:Array;
    
    model_internal var _warehouse_serialnumber_fkIsValid:Boolean;
    model_internal var _warehouse_serialnumber_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _warehouse_serialnumber_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _warehouse_serialnumber_fkValidationFailureMessages:Array;

    model_internal var _instance:_Super_VoGoodsReceived;
    model_internal static var _nullStyle:com.adobe.fiber.styles.Style = new com.adobe.fiber.styles.Style();

    public function _VoGoodsReceivedEntityMetadata(value : _Super_VoGoodsReceived)
    {
        // initialize property maps
        if (model_internal::dependentsOnMap == null)
        {
            // depenents map
            model_internal::dependentsOnMap = new Object();
            model_internal::dependentsOnMap["currency_name"] = new Array();
            model_internal::dependentsOnMap["curr_received_qty"] = new Array();
            model_internal::dependentsOnMap["pro_name"] = new Array();
            model_internal::dependentsOnMap["total_qty"] = new Array();
            model_internal::dependentsOnMap["cre_userid_fk"] = new Array();
            model_internal::dependentsOnMap["vendor_ref_no"] = new Array();
            model_internal::dependentsOnMap["part_number"] = new Array();
            model_internal::dependentsOnMap["sc_fk"] = new Array();
            model_internal::dependentsOnMap["map_do"] = new Array();
            model_internal::dependentsOnMap["unit_price"] = new Array();
            model_internal::dependentsOnMap["pro_description"] = new Array();
            model_internal::dependentsOnMap["po_serialnumber"] = new Array();
            model_internal::dependentsOnMap["sc_detserialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["currency_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["activestatus"] = new Array();
            model_internal::dependentsOnMap["grn_detserialnumber"] = new Array();
            model_internal::dependentsOnMap["current_rate"] = new Array();
            model_internal::dependentsOnMap["goods_received_date"] = new Array();
            model_internal::dependentsOnMap["gr_id"] = new Array();
            model_internal::dependentsOnMap["client_name"] = new Array();
            model_internal::dependentsOnMap["gr_serialnumber"] = new Array();
            model_internal::dependentsOnMap["total_amount"] = new Array();
            model_internal::dependentsOnMap["cre_datetime"] = new Array();
            model_internal::dependentsOnMap["po_detserialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["po_id"] = new Array();
            model_internal::dependentsOnMap["pro_total_price"] = new Array();
            model_internal::dependentsOnMap["gr_gst"] = new Array();
            model_internal::dependentsOnMap["balance_qty"] = new Array();
            model_internal::dependentsOnMap["supplier_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["pro_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["gr_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["po_qty"] = new Array();
            model_internal::dependentsOnMap["sales_con_code"] = new Array();
            model_internal::dependentsOnMap["received_qty"] = new Array();
            model_internal::dependentsOnMap["warehouse_serialnumber_fk"] = new Array();

            // collection base map
            model_internal::collectionBaseMap = new Object()
            model_internal::collectionBaseMap["curr_received_qty"] = "int";
            model_internal::collectionBaseMap["pro_name"] = "String";
            model_internal::collectionBaseMap["part_number"] = "String";
            model_internal::collectionBaseMap["sc_fk"] = "int";
            model_internal::collectionBaseMap["unit_price"] = "Number";
            model_internal::collectionBaseMap["pro_description"] = "String";
            model_internal::collectionBaseMap["po_serialnumber"] = "int";
            model_internal::collectionBaseMap["sc_detserialnumber_fk"] = "int";
            model_internal::collectionBaseMap["grn_detserialnumber"] = "int";
            model_internal::collectionBaseMap["po_detserialnumber_fk"] = "int";
            model_internal::collectionBaseMap["po_id"] = "String";
            model_internal::collectionBaseMap["pro_total_price"] = "Number";
            model_internal::collectionBaseMap["balance_qty"] = "int";
            model_internal::collectionBaseMap["pro_serialnumber_fk"] = "int";
            model_internal::collectionBaseMap["gr_serialnumber_fk"] = "int";
            model_internal::collectionBaseMap["po_qty"] = "Number";
            model_internal::collectionBaseMap["sales_con_code"] = "int";
            model_internal::collectionBaseMap["received_qty"] = "int";
            model_internal::collectionBaseMap["warehouse_serialnumber_fk"] = "int";
        }

        model_internal::_instance = value;
        model_internal::_currency_nameValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForCurrency_name);
        model_internal::_currency_nameValidator.required = true;
        model_internal::_currency_nameValidator.requiredFieldError = "currency_name is required";
        //model_internal::_currency_nameValidator.source = model_internal::_instance;
        //model_internal::_currency_nameValidator.property = "currency_name";
        model_internal::_curr_received_qtyValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForCurr_received_qty);
        model_internal::_curr_received_qtyValidator.required = true;
        model_internal::_curr_received_qtyValidator.requiredFieldError = "curr_received_qty is required";
        //model_internal::_curr_received_qtyValidator.source = model_internal::_instance;
        //model_internal::_curr_received_qtyValidator.property = "curr_received_qty";
        model_internal::_pro_nameValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_name);
        model_internal::_pro_nameValidator.required = true;
        model_internal::_pro_nameValidator.requiredFieldError = "pro_name is required";
        //model_internal::_pro_nameValidator.source = model_internal::_instance;
        //model_internal::_pro_nameValidator.property = "pro_name";
        model_internal::_vendor_ref_noValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForVendor_ref_no);
        model_internal::_vendor_ref_noValidator.required = true;
        model_internal::_vendor_ref_noValidator.requiredFieldError = "vendor_ref_no is required";
        //model_internal::_vendor_ref_noValidator.source = model_internal::_instance;
        //model_internal::_vendor_ref_noValidator.property = "vendor_ref_no";
        model_internal::_part_numberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPart_number);
        model_internal::_part_numberValidator.required = true;
        model_internal::_part_numberValidator.requiredFieldError = "part_number is required";
        //model_internal::_part_numberValidator.source = model_internal::_instance;
        //model_internal::_part_numberValidator.property = "part_number";
        model_internal::_sc_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSc_fk);
        model_internal::_sc_fkValidator.required = true;
        model_internal::_sc_fkValidator.requiredFieldError = "sc_fk is required";
        //model_internal::_sc_fkValidator.source = model_internal::_instance;
        //model_internal::_sc_fkValidator.property = "sc_fk";
        model_internal::_unit_priceValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForUnit_price);
        model_internal::_unit_priceValidator.required = true;
        model_internal::_unit_priceValidator.requiredFieldError = "unit_price is required";
        //model_internal::_unit_priceValidator.source = model_internal::_instance;
        //model_internal::_unit_priceValidator.property = "unit_price";
        model_internal::_pro_descriptionValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_description);
        model_internal::_pro_descriptionValidator.required = true;
        model_internal::_pro_descriptionValidator.requiredFieldError = "pro_description is required";
        //model_internal::_pro_descriptionValidator.source = model_internal::_instance;
        //model_internal::_pro_descriptionValidator.property = "pro_description";
        model_internal::_po_serialnumberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPo_serialnumber);
        model_internal::_po_serialnumberValidator.required = true;
        model_internal::_po_serialnumberValidator.requiredFieldError = "po_serialnumber is required";
        //model_internal::_po_serialnumberValidator.source = model_internal::_instance;
        //model_internal::_po_serialnumberValidator.property = "po_serialnumber";
        model_internal::_sc_detserialnumber_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSc_detserialnumber_fk);
        model_internal::_sc_detserialnumber_fkValidator.required = true;
        model_internal::_sc_detserialnumber_fkValidator.requiredFieldError = "sc_detserialnumber_fk is required";
        //model_internal::_sc_detserialnumber_fkValidator.source = model_internal::_instance;
        //model_internal::_sc_detserialnumber_fkValidator.property = "sc_detserialnumber_fk";
        model_internal::_grn_detserialnumberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForGrn_detserialnumber);
        model_internal::_grn_detserialnumberValidator.required = true;
        model_internal::_grn_detserialnumberValidator.requiredFieldError = "grn_detserialnumber is required";
        //model_internal::_grn_detserialnumberValidator.source = model_internal::_instance;
        //model_internal::_grn_detserialnumberValidator.property = "grn_detserialnumber";
        model_internal::_goods_received_dateValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForGoods_received_date);
        model_internal::_goods_received_dateValidator.required = true;
        model_internal::_goods_received_dateValidator.requiredFieldError = "goods_received_date is required";
        //model_internal::_goods_received_dateValidator.source = model_internal::_instance;
        //model_internal::_goods_received_dateValidator.property = "goods_received_date";
        model_internal::_gr_idValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForGr_id);
        model_internal::_gr_idValidator.required = true;
        model_internal::_gr_idValidator.requiredFieldError = "gr_id is required";
        //model_internal::_gr_idValidator.source = model_internal::_instance;
        //model_internal::_gr_idValidator.property = "gr_id";
        model_internal::_client_nameValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_name);
        model_internal::_client_nameValidator.required = true;
        model_internal::_client_nameValidator.requiredFieldError = "client_name is required";
        //model_internal::_client_nameValidator.source = model_internal::_instance;
        //model_internal::_client_nameValidator.property = "client_name";
        model_internal::_cre_datetimeValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForCre_datetime);
        model_internal::_cre_datetimeValidator.required = true;
        model_internal::_cre_datetimeValidator.requiredFieldError = "cre_datetime is required";
        //model_internal::_cre_datetimeValidator.source = model_internal::_instance;
        //model_internal::_cre_datetimeValidator.property = "cre_datetime";
        model_internal::_po_detserialnumber_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPo_detserialnumber_fk);
        model_internal::_po_detserialnumber_fkValidator.required = true;
        model_internal::_po_detserialnumber_fkValidator.requiredFieldError = "po_detserialnumber_fk is required";
        //model_internal::_po_detserialnumber_fkValidator.source = model_internal::_instance;
        //model_internal::_po_detserialnumber_fkValidator.property = "po_detserialnumber_fk";
        model_internal::_po_idValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPo_id);
        model_internal::_po_idValidator.required = true;
        model_internal::_po_idValidator.requiredFieldError = "po_id is required";
        //model_internal::_po_idValidator.source = model_internal::_instance;
        //model_internal::_po_idValidator.property = "po_id";
        model_internal::_pro_total_priceValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_total_price);
        model_internal::_pro_total_priceValidator.required = true;
        model_internal::_pro_total_priceValidator.requiredFieldError = "pro_total_price is required";
        //model_internal::_pro_total_priceValidator.source = model_internal::_instance;
        //model_internal::_pro_total_priceValidator.property = "pro_total_price";
        model_internal::_balance_qtyValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForBalance_qty);
        model_internal::_balance_qtyValidator.required = true;
        model_internal::_balance_qtyValidator.requiredFieldError = "balance_qty is required";
        //model_internal::_balance_qtyValidator.source = model_internal::_instance;
        //model_internal::_balance_qtyValidator.property = "balance_qty";
        model_internal::_pro_serialnumber_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_serialnumber_fk);
        model_internal::_pro_serialnumber_fkValidator.required = true;
        model_internal::_pro_serialnumber_fkValidator.requiredFieldError = "pro_serialnumber_fk is required";
        //model_internal::_pro_serialnumber_fkValidator.source = model_internal::_instance;
        //model_internal::_pro_serialnumber_fkValidator.property = "pro_serialnumber_fk";
        model_internal::_gr_serialnumber_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForGr_serialnumber_fk);
        model_internal::_gr_serialnumber_fkValidator.required = true;
        model_internal::_gr_serialnumber_fkValidator.requiredFieldError = "gr_serialnumber_fk is required";
        //model_internal::_gr_serialnumber_fkValidator.source = model_internal::_instance;
        //model_internal::_gr_serialnumber_fkValidator.property = "gr_serialnumber_fk";
        model_internal::_po_qtyValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPo_qty);
        model_internal::_po_qtyValidator.required = true;
        model_internal::_po_qtyValidator.requiredFieldError = "po_qty is required";
        //model_internal::_po_qtyValidator.source = model_internal::_instance;
        //model_internal::_po_qtyValidator.property = "po_qty";
        model_internal::_sales_con_codeValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSales_con_code);
        model_internal::_sales_con_codeValidator.required = true;
        model_internal::_sales_con_codeValidator.requiredFieldError = "sales_con_code is required";
        //model_internal::_sales_con_codeValidator.source = model_internal::_instance;
        //model_internal::_sales_con_codeValidator.property = "sales_con_code";
        model_internal::_received_qtyValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForReceived_qty);
        model_internal::_received_qtyValidator.required = true;
        model_internal::_received_qtyValidator.requiredFieldError = "received_qty is required";
        //model_internal::_received_qtyValidator.source = model_internal::_instance;
        //model_internal::_received_qtyValidator.property = "received_qty";
        model_internal::_warehouse_serialnumber_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForWarehouse_serialnumber_fk);
        model_internal::_warehouse_serialnumber_fkValidator.required = true;
        model_internal::_warehouse_serialnumber_fkValidator.requiredFieldError = "warehouse_serialnumber_fk is required";
        //model_internal::_warehouse_serialnumber_fkValidator.source = model_internal::_instance;
        //model_internal::_warehouse_serialnumber_fkValidator.property = "warehouse_serialnumber_fk";
    }

    override public function getEntityName():String
    {
        return model_internal::entityName;
    }

    override public function getProperties():Array
    {
        return model_internal::allProperties;
    }

    override public function getAssociationProperties():Array
    {
        return model_internal::allAssociationProperties;
    }

    override public function getRequiredProperties():Array
    {
         return model_internal::allRequiredProperties;   
    }

    override public function getDataProperties():Array
    {
        return model_internal::dataProperties;
    }

    override public function getGuardedProperties():Array
    {
        return model_internal::guardedProperties;
    }

    override public function getUnguardedProperties():Array
    {
        return model_internal::allAlwaysAvailableProperties;
    }

    override public function getDependants(propertyName:String):Array
    {
       if (model_internal::dataProperties.indexOf(propertyName) == -1)
            throw new Error(propertyName + " is not a data property of entity VoGoodsReceived");  
            
       return model_internal::dependentsOnMap[propertyName] as Array;  
    }

    override public function getDependedOnServices():Array
    {
        return model_internal::dependedOnServices;
    }

    override public function getCollectionProperties():Array
    {
        return model_internal::collectionProperties;
    }

    override public function getCollectionBase(propertyName:String):String
    {
        if (model_internal::collectionProperties.indexOf(propertyName) == -1)
            throw new Error(propertyName + " is not a collection property of entity VoGoodsReceived");  

        return model_internal::collectionBaseMap[propertyName];
    }

    override public function getAvailableProperties():com.adobe.fiber.valueobjects.IPropertyIterator
    {
        return new com.adobe.fiber.valueobjects.AvailablePropertyIterator(this);
    }

    override public function getValue(propertyName:String):*
    {
        if (model_internal::allProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " does not exist for entity VoGoodsReceived");
        }

        return model_internal::_instance[propertyName];
    }

    override public function setValue(propertyName:String, value:*):void
    {
        if (model_internal::dataProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " is not a data property of entity VoGoodsReceived");
        }

        model_internal::_instance[propertyName] = value;
    }

    override public function getMappedByProperty(associationProperty:String):String
    {
        switch(associationProperty)
        {
            default:
            {
                return null;
            }
        }
    }

    override public function getPropertyLength(propertyName:String):int
    {
        switch(propertyName)
        {
            default:
            {
                return 0;
            }
        }
    }

    override public function isAvailable(propertyName:String):Boolean
    {
        if (model_internal::allProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " does not exist for entity VoGoodsReceived");
        }

        if (model_internal::allAlwaysAvailableProperties.indexOf(propertyName) != -1)
        {
            return true;
        }

        switch(propertyName)
        {
            default:
            {
                return true;
            }
        }
    }

    override public function getIdentityMap():Object
    {
        var returnMap:Object = new Object();

        return returnMap;
    }

    [Bindable(event="propertyChange")]
    override public function get invalidConstraints():Array
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_invalidConstraints;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_invalidConstraints;        
        }
    }

    [Bindable(event="propertyChange")]
    override public function get validationFailureMessages():Array
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_validationFailureMessages;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_validationFailureMessages;
        }
    }

    override public function getDependantInvalidConstraints(propertyName:String):Array
    {
        var dependants:Array = getDependants(propertyName);
        if (dependants.length == 0)
        {
            return emptyArray;
        }

        var currentlyInvalid:Array = invalidConstraints;
        if (currentlyInvalid.length == 0)
        {
            return emptyArray;
        }

        var filterFunc:Function = function(element:*, index:int, arr:Array):Boolean
        {
            return dependants.indexOf(element) > -1;
        }

        return currentlyInvalid.filter(filterFunc);
    }

    /**
     * isValid
     */
    [Bindable(event="propertyChange")] 
    public function get isValid() : Boolean
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_isValid;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_isValid;
        }
    }

    [Bindable(event="propertyChange")]
    public function get isCurrency_nameAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCurr_received_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_nameAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isTotal_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCre_userid_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isVendor_ref_noAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPart_numberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSc_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isMap_doAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isUnit_priceAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_descriptionAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPo_serialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSc_detserialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCurrency_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isActivestatusAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isGrn_detserialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCurrent_rateAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isGoods_received_dateAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isGr_idAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_nameAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isGr_serialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isTotal_amountAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCre_datetimeAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPo_detserialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPo_idAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_total_priceAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isGr_gstAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isBalance_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSupplier_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isGr_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPo_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSales_con_codeAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isReceived_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isWarehouse_serialnumber_fkAvailable():Boolean
    {
        return true;
    }


    /**
     * derived property recalculation
     */
    public function invalidateDependentOnCurrency_name():void
    {
        if (model_internal::_currency_nameIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfCurrency_name = null;
            model_internal::calculateCurrency_nameIsValid();
        }
    }
    public function invalidateDependentOnCurr_received_qty():void
    {
        if (model_internal::_curr_received_qtyIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfCurr_received_qty = null;
            model_internal::calculateCurr_received_qtyIsValid();
        }
    }
    public function invalidateDependentOnPro_name():void
    {
        if (model_internal::_pro_nameIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_name = null;
            model_internal::calculatePro_nameIsValid();
        }
    }
    public function invalidateDependentOnVendor_ref_no():void
    {
        if (model_internal::_vendor_ref_noIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfVendor_ref_no = null;
            model_internal::calculateVendor_ref_noIsValid();
        }
    }
    public function invalidateDependentOnPart_number():void
    {
        if (model_internal::_part_numberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPart_number = null;
            model_internal::calculatePart_numberIsValid();
        }
    }
    public function invalidateDependentOnSc_fk():void
    {
        if (model_internal::_sc_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSc_fk = null;
            model_internal::calculateSc_fkIsValid();
        }
    }
    public function invalidateDependentOnUnit_price():void
    {
        if (model_internal::_unit_priceIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfUnit_price = null;
            model_internal::calculateUnit_priceIsValid();
        }
    }
    public function invalidateDependentOnPro_description():void
    {
        if (model_internal::_pro_descriptionIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_description = null;
            model_internal::calculatePro_descriptionIsValid();
        }
    }
    public function invalidateDependentOnPo_serialnumber():void
    {
        if (model_internal::_po_serialnumberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPo_serialnumber = null;
            model_internal::calculatePo_serialnumberIsValid();
        }
    }
    public function invalidateDependentOnSc_detserialnumber_fk():void
    {
        if (model_internal::_sc_detserialnumber_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSc_detserialnumber_fk = null;
            model_internal::calculateSc_detserialnumber_fkIsValid();
        }
    }
    public function invalidateDependentOnGrn_detserialnumber():void
    {
        if (model_internal::_grn_detserialnumberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfGrn_detserialnumber = null;
            model_internal::calculateGrn_detserialnumberIsValid();
        }
    }
    public function invalidateDependentOnGoods_received_date():void
    {
        if (model_internal::_goods_received_dateIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfGoods_received_date = null;
            model_internal::calculateGoods_received_dateIsValid();
        }
    }
    public function invalidateDependentOnGr_id():void
    {
        if (model_internal::_gr_idIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfGr_id = null;
            model_internal::calculateGr_idIsValid();
        }
    }
    public function invalidateDependentOnClient_name():void
    {
        if (model_internal::_client_nameIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_name = null;
            model_internal::calculateClient_nameIsValid();
        }
    }
    public function invalidateDependentOnCre_datetime():void
    {
        if (model_internal::_cre_datetimeIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfCre_datetime = null;
            model_internal::calculateCre_datetimeIsValid();
        }
    }
    public function invalidateDependentOnPo_detserialnumber_fk():void
    {
        if (model_internal::_po_detserialnumber_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPo_detserialnumber_fk = null;
            model_internal::calculatePo_detserialnumber_fkIsValid();
        }
    }
    public function invalidateDependentOnPo_id():void
    {
        if (model_internal::_po_idIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPo_id = null;
            model_internal::calculatePo_idIsValid();
        }
    }
    public function invalidateDependentOnPro_total_price():void
    {
        if (model_internal::_pro_total_priceIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_total_price = null;
            model_internal::calculatePro_total_priceIsValid();
        }
    }
    public function invalidateDependentOnBalance_qty():void
    {
        if (model_internal::_balance_qtyIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfBalance_qty = null;
            model_internal::calculateBalance_qtyIsValid();
        }
    }
    public function invalidateDependentOnPro_serialnumber_fk():void
    {
        if (model_internal::_pro_serialnumber_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_serialnumber_fk = null;
            model_internal::calculatePro_serialnumber_fkIsValid();
        }
    }
    public function invalidateDependentOnGr_serialnumber_fk():void
    {
        if (model_internal::_gr_serialnumber_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfGr_serialnumber_fk = null;
            model_internal::calculateGr_serialnumber_fkIsValid();
        }
    }
    public function invalidateDependentOnPo_qty():void
    {
        if (model_internal::_po_qtyIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPo_qty = null;
            model_internal::calculatePo_qtyIsValid();
        }
    }
    public function invalidateDependentOnSales_con_code():void
    {
        if (model_internal::_sales_con_codeIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSales_con_code = null;
            model_internal::calculateSales_con_codeIsValid();
        }
    }
    public function invalidateDependentOnReceived_qty():void
    {
        if (model_internal::_received_qtyIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfReceived_qty = null;
            model_internal::calculateReceived_qtyIsValid();
        }
    }
    public function invalidateDependentOnWarehouse_serialnumber_fk():void
    {
        if (model_internal::_warehouse_serialnumber_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfWarehouse_serialnumber_fk = null;
            model_internal::calculateWarehouse_serialnumber_fkIsValid();
        }
    }

    model_internal function fireChangeEvent(propertyName:String, oldValue:Object, newValue:Object):void
    {
        this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, propertyName, oldValue, newValue));
    }

    [Bindable(event="propertyChange")]   
    public function get currency_nameStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get currency_nameValidator() : StyleValidator
    {
        return model_internal::_currency_nameValidator;
    }

    model_internal function set _currency_nameIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_currency_nameIsValid;         
        if (oldValue !== value)
        {
            model_internal::_currency_nameIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "currency_nameIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get currency_nameIsValid():Boolean
    {
        if (!model_internal::_currency_nameIsValidCacheInitialized)
        {
            model_internal::calculateCurrency_nameIsValid();
        }

        return model_internal::_currency_nameIsValid;
    }

    model_internal function calculateCurrency_nameIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_currency_nameValidator.validate(model_internal::_instance.currency_name)
        model_internal::_currency_nameIsValid_der = (valRes.results == null);
        model_internal::_currency_nameIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::currency_nameValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::currency_nameValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get currency_nameValidationFailureMessages():Array
    {
        if (model_internal::_currency_nameValidationFailureMessages == null)
            model_internal::calculateCurrency_nameIsValid();

        return _currency_nameValidationFailureMessages;
    }

    model_internal function set currency_nameValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_currency_nameValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_currency_nameValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "currency_nameValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get curr_received_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get curr_received_qtyValidator() : StyleValidator
    {
        return model_internal::_curr_received_qtyValidator;
    }

    model_internal function set _curr_received_qtyIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_curr_received_qtyIsValid;         
        if (oldValue !== value)
        {
            model_internal::_curr_received_qtyIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "curr_received_qtyIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get curr_received_qtyIsValid():Boolean
    {
        if (!model_internal::_curr_received_qtyIsValidCacheInitialized)
        {
            model_internal::calculateCurr_received_qtyIsValid();
        }

        return model_internal::_curr_received_qtyIsValid;
    }

    model_internal function calculateCurr_received_qtyIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_curr_received_qtyValidator.validate(model_internal::_instance.curr_received_qty)
        model_internal::_curr_received_qtyIsValid_der = (valRes.results == null);
        model_internal::_curr_received_qtyIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::curr_received_qtyValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::curr_received_qtyValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get curr_received_qtyValidationFailureMessages():Array
    {
        if (model_internal::_curr_received_qtyValidationFailureMessages == null)
            model_internal::calculateCurr_received_qtyIsValid();

        return _curr_received_qtyValidationFailureMessages;
    }

    model_internal function set curr_received_qtyValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_curr_received_qtyValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_curr_received_qtyValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "curr_received_qtyValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_nameStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_nameValidator() : StyleValidator
    {
        return model_internal::_pro_nameValidator;
    }

    model_internal function set _pro_nameIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_nameIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_nameIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_nameIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_nameIsValid():Boolean
    {
        if (!model_internal::_pro_nameIsValidCacheInitialized)
        {
            model_internal::calculatePro_nameIsValid();
        }

        return model_internal::_pro_nameIsValid;
    }

    model_internal function calculatePro_nameIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_nameValidator.validate(model_internal::_instance.pro_name)
        model_internal::_pro_nameIsValid_der = (valRes.results == null);
        model_internal::_pro_nameIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_nameValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_nameValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_nameValidationFailureMessages():Array
    {
        if (model_internal::_pro_nameValidationFailureMessages == null)
            model_internal::calculatePro_nameIsValid();

        return _pro_nameValidationFailureMessages;
    }

    model_internal function set pro_nameValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_nameValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_nameValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_nameValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get total_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get cre_userid_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get vendor_ref_noStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get vendor_ref_noValidator() : StyleValidator
    {
        return model_internal::_vendor_ref_noValidator;
    }

    model_internal function set _vendor_ref_noIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_vendor_ref_noIsValid;         
        if (oldValue !== value)
        {
            model_internal::_vendor_ref_noIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "vendor_ref_noIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get vendor_ref_noIsValid():Boolean
    {
        if (!model_internal::_vendor_ref_noIsValidCacheInitialized)
        {
            model_internal::calculateVendor_ref_noIsValid();
        }

        return model_internal::_vendor_ref_noIsValid;
    }

    model_internal function calculateVendor_ref_noIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_vendor_ref_noValidator.validate(model_internal::_instance.vendor_ref_no)
        model_internal::_vendor_ref_noIsValid_der = (valRes.results == null);
        model_internal::_vendor_ref_noIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::vendor_ref_noValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::vendor_ref_noValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get vendor_ref_noValidationFailureMessages():Array
    {
        if (model_internal::_vendor_ref_noValidationFailureMessages == null)
            model_internal::calculateVendor_ref_noIsValid();

        return _vendor_ref_noValidationFailureMessages;
    }

    model_internal function set vendor_ref_noValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_vendor_ref_noValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_vendor_ref_noValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "vendor_ref_noValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get part_numberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get part_numberValidator() : StyleValidator
    {
        return model_internal::_part_numberValidator;
    }

    model_internal function set _part_numberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_part_numberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_part_numberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "part_numberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get part_numberIsValid():Boolean
    {
        if (!model_internal::_part_numberIsValidCacheInitialized)
        {
            model_internal::calculatePart_numberIsValid();
        }

        return model_internal::_part_numberIsValid;
    }

    model_internal function calculatePart_numberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_part_numberValidator.validate(model_internal::_instance.part_number)
        model_internal::_part_numberIsValid_der = (valRes.results == null);
        model_internal::_part_numberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::part_numberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::part_numberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get part_numberValidationFailureMessages():Array
    {
        if (model_internal::_part_numberValidationFailureMessages == null)
            model_internal::calculatePart_numberIsValid();

        return _part_numberValidationFailureMessages;
    }

    model_internal function set part_numberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_part_numberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_part_numberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "part_numberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get sc_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get sc_fkValidator() : StyleValidator
    {
        return model_internal::_sc_fkValidator;
    }

    model_internal function set _sc_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_sc_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_sc_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get sc_fkIsValid():Boolean
    {
        if (!model_internal::_sc_fkIsValidCacheInitialized)
        {
            model_internal::calculateSc_fkIsValid();
        }

        return model_internal::_sc_fkIsValid;
    }

    model_internal function calculateSc_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_sc_fkValidator.validate(model_internal::_instance.sc_fk)
        model_internal::_sc_fkIsValid_der = (valRes.results == null);
        model_internal::_sc_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::sc_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::sc_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get sc_fkValidationFailureMessages():Array
    {
        if (model_internal::_sc_fkValidationFailureMessages == null)
            model_internal::calculateSc_fkIsValid();

        return _sc_fkValidationFailureMessages;
    }

    model_internal function set sc_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_sc_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_sc_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get map_doStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get unit_priceStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get unit_priceValidator() : StyleValidator
    {
        return model_internal::_unit_priceValidator;
    }

    model_internal function set _unit_priceIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_unit_priceIsValid;         
        if (oldValue !== value)
        {
            model_internal::_unit_priceIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "unit_priceIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get unit_priceIsValid():Boolean
    {
        if (!model_internal::_unit_priceIsValidCacheInitialized)
        {
            model_internal::calculateUnit_priceIsValid();
        }

        return model_internal::_unit_priceIsValid;
    }

    model_internal function calculateUnit_priceIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_unit_priceValidator.validate(model_internal::_instance.unit_price)
        model_internal::_unit_priceIsValid_der = (valRes.results == null);
        model_internal::_unit_priceIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::unit_priceValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::unit_priceValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get unit_priceValidationFailureMessages():Array
    {
        if (model_internal::_unit_priceValidationFailureMessages == null)
            model_internal::calculateUnit_priceIsValid();

        return _unit_priceValidationFailureMessages;
    }

    model_internal function set unit_priceValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_unit_priceValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_unit_priceValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "unit_priceValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_descriptionStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_descriptionValidator() : StyleValidator
    {
        return model_internal::_pro_descriptionValidator;
    }

    model_internal function set _pro_descriptionIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_descriptionIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_descriptionIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_descriptionIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_descriptionIsValid():Boolean
    {
        if (!model_internal::_pro_descriptionIsValidCacheInitialized)
        {
            model_internal::calculatePro_descriptionIsValid();
        }

        return model_internal::_pro_descriptionIsValid;
    }

    model_internal function calculatePro_descriptionIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_descriptionValidator.validate(model_internal::_instance.pro_description)
        model_internal::_pro_descriptionIsValid_der = (valRes.results == null);
        model_internal::_pro_descriptionIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_descriptionValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_descriptionValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_descriptionValidationFailureMessages():Array
    {
        if (model_internal::_pro_descriptionValidationFailureMessages == null)
            model_internal::calculatePro_descriptionIsValid();

        return _pro_descriptionValidationFailureMessages;
    }

    model_internal function set pro_descriptionValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_descriptionValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_descriptionValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_descriptionValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get po_serialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get po_serialnumberValidator() : StyleValidator
    {
        return model_internal::_po_serialnumberValidator;
    }

    model_internal function set _po_serialnumberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_po_serialnumberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_po_serialnumberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_serialnumberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get po_serialnumberIsValid():Boolean
    {
        if (!model_internal::_po_serialnumberIsValidCacheInitialized)
        {
            model_internal::calculatePo_serialnumberIsValid();
        }

        return model_internal::_po_serialnumberIsValid;
    }

    model_internal function calculatePo_serialnumberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_po_serialnumberValidator.validate(model_internal::_instance.po_serialnumber)
        model_internal::_po_serialnumberIsValid_der = (valRes.results == null);
        model_internal::_po_serialnumberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::po_serialnumberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::po_serialnumberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get po_serialnumberValidationFailureMessages():Array
    {
        if (model_internal::_po_serialnumberValidationFailureMessages == null)
            model_internal::calculatePo_serialnumberIsValid();

        return _po_serialnumberValidationFailureMessages;
    }

    model_internal function set po_serialnumberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_po_serialnumberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_po_serialnumberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_serialnumberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get sc_detserialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get sc_detserialnumber_fkValidator() : StyleValidator
    {
        return model_internal::_sc_detserialnumber_fkValidator;
    }

    model_internal function set _sc_detserialnumber_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_sc_detserialnumber_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_sc_detserialnumber_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_detserialnumber_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get sc_detserialnumber_fkIsValid():Boolean
    {
        if (!model_internal::_sc_detserialnumber_fkIsValidCacheInitialized)
        {
            model_internal::calculateSc_detserialnumber_fkIsValid();
        }

        return model_internal::_sc_detserialnumber_fkIsValid;
    }

    model_internal function calculateSc_detserialnumber_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_sc_detserialnumber_fkValidator.validate(model_internal::_instance.sc_detserialnumber_fk)
        model_internal::_sc_detserialnumber_fkIsValid_der = (valRes.results == null);
        model_internal::_sc_detserialnumber_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::sc_detserialnumber_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::sc_detserialnumber_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get sc_detserialnumber_fkValidationFailureMessages():Array
    {
        if (model_internal::_sc_detserialnumber_fkValidationFailureMessages == null)
            model_internal::calculateSc_detserialnumber_fkIsValid();

        return _sc_detserialnumber_fkValidationFailureMessages;
    }

    model_internal function set sc_detserialnumber_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_sc_detserialnumber_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_sc_detserialnumber_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_detserialnumber_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get currency_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get activestatusStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get grn_detserialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get grn_detserialnumberValidator() : StyleValidator
    {
        return model_internal::_grn_detserialnumberValidator;
    }

    model_internal function set _grn_detserialnumberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_grn_detserialnumberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_grn_detserialnumberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "grn_detserialnumberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get grn_detserialnumberIsValid():Boolean
    {
        if (!model_internal::_grn_detserialnumberIsValidCacheInitialized)
        {
            model_internal::calculateGrn_detserialnumberIsValid();
        }

        return model_internal::_grn_detserialnumberIsValid;
    }

    model_internal function calculateGrn_detserialnumberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_grn_detserialnumberValidator.validate(model_internal::_instance.grn_detserialnumber)
        model_internal::_grn_detserialnumberIsValid_der = (valRes.results == null);
        model_internal::_grn_detserialnumberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::grn_detserialnumberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::grn_detserialnumberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get grn_detserialnumberValidationFailureMessages():Array
    {
        if (model_internal::_grn_detserialnumberValidationFailureMessages == null)
            model_internal::calculateGrn_detserialnumberIsValid();

        return _grn_detserialnumberValidationFailureMessages;
    }

    model_internal function set grn_detserialnumberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_grn_detserialnumberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_grn_detserialnumberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "grn_detserialnumberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get current_rateStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get goods_received_dateStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get goods_received_dateValidator() : StyleValidator
    {
        return model_internal::_goods_received_dateValidator;
    }

    model_internal function set _goods_received_dateIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_goods_received_dateIsValid;         
        if (oldValue !== value)
        {
            model_internal::_goods_received_dateIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "goods_received_dateIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get goods_received_dateIsValid():Boolean
    {
        if (!model_internal::_goods_received_dateIsValidCacheInitialized)
        {
            model_internal::calculateGoods_received_dateIsValid();
        }

        return model_internal::_goods_received_dateIsValid;
    }

    model_internal function calculateGoods_received_dateIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_goods_received_dateValidator.validate(model_internal::_instance.goods_received_date)
        model_internal::_goods_received_dateIsValid_der = (valRes.results == null);
        model_internal::_goods_received_dateIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::goods_received_dateValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::goods_received_dateValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get goods_received_dateValidationFailureMessages():Array
    {
        if (model_internal::_goods_received_dateValidationFailureMessages == null)
            model_internal::calculateGoods_received_dateIsValid();

        return _goods_received_dateValidationFailureMessages;
    }

    model_internal function set goods_received_dateValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_goods_received_dateValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_goods_received_dateValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "goods_received_dateValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get gr_idStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get gr_idValidator() : StyleValidator
    {
        return model_internal::_gr_idValidator;
    }

    model_internal function set _gr_idIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_gr_idIsValid;         
        if (oldValue !== value)
        {
            model_internal::_gr_idIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "gr_idIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get gr_idIsValid():Boolean
    {
        if (!model_internal::_gr_idIsValidCacheInitialized)
        {
            model_internal::calculateGr_idIsValid();
        }

        return model_internal::_gr_idIsValid;
    }

    model_internal function calculateGr_idIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_gr_idValidator.validate(model_internal::_instance.gr_id)
        model_internal::_gr_idIsValid_der = (valRes.results == null);
        model_internal::_gr_idIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::gr_idValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::gr_idValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get gr_idValidationFailureMessages():Array
    {
        if (model_internal::_gr_idValidationFailureMessages == null)
            model_internal::calculateGr_idIsValid();

        return _gr_idValidationFailureMessages;
    }

    model_internal function set gr_idValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_gr_idValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_gr_idValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "gr_idValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get client_nameStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_nameValidator() : StyleValidator
    {
        return model_internal::_client_nameValidator;
    }

    model_internal function set _client_nameIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_nameIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_nameIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_nameIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_nameIsValid():Boolean
    {
        if (!model_internal::_client_nameIsValidCacheInitialized)
        {
            model_internal::calculateClient_nameIsValid();
        }

        return model_internal::_client_nameIsValid;
    }

    model_internal function calculateClient_nameIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_nameValidator.validate(model_internal::_instance.client_name)
        model_internal::_client_nameIsValid_der = (valRes.results == null);
        model_internal::_client_nameIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_nameValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_nameValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_nameValidationFailureMessages():Array
    {
        if (model_internal::_client_nameValidationFailureMessages == null)
            model_internal::calculateClient_nameIsValid();

        return _client_nameValidationFailureMessages;
    }

    model_internal function set client_nameValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_nameValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_nameValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_nameValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get gr_serialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get total_amountStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get cre_datetimeStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get cre_datetimeValidator() : StyleValidator
    {
        return model_internal::_cre_datetimeValidator;
    }

    model_internal function set _cre_datetimeIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_cre_datetimeIsValid;         
        if (oldValue !== value)
        {
            model_internal::_cre_datetimeIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_datetimeIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get cre_datetimeIsValid():Boolean
    {
        if (!model_internal::_cre_datetimeIsValidCacheInitialized)
        {
            model_internal::calculateCre_datetimeIsValid();
        }

        return model_internal::_cre_datetimeIsValid;
    }

    model_internal function calculateCre_datetimeIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_cre_datetimeValidator.validate(model_internal::_instance.cre_datetime)
        model_internal::_cre_datetimeIsValid_der = (valRes.results == null);
        model_internal::_cre_datetimeIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::cre_datetimeValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::cre_datetimeValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get cre_datetimeValidationFailureMessages():Array
    {
        if (model_internal::_cre_datetimeValidationFailureMessages == null)
            model_internal::calculateCre_datetimeIsValid();

        return _cre_datetimeValidationFailureMessages;
    }

    model_internal function set cre_datetimeValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_cre_datetimeValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_cre_datetimeValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_datetimeValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get po_detserialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get po_detserialnumber_fkValidator() : StyleValidator
    {
        return model_internal::_po_detserialnumber_fkValidator;
    }

    model_internal function set _po_detserialnumber_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_po_detserialnumber_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_po_detserialnumber_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_detserialnumber_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get po_detserialnumber_fkIsValid():Boolean
    {
        if (!model_internal::_po_detserialnumber_fkIsValidCacheInitialized)
        {
            model_internal::calculatePo_detserialnumber_fkIsValid();
        }

        return model_internal::_po_detserialnumber_fkIsValid;
    }

    model_internal function calculatePo_detserialnumber_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_po_detserialnumber_fkValidator.validate(model_internal::_instance.po_detserialnumber_fk)
        model_internal::_po_detserialnumber_fkIsValid_der = (valRes.results == null);
        model_internal::_po_detserialnumber_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::po_detserialnumber_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::po_detserialnumber_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get po_detserialnumber_fkValidationFailureMessages():Array
    {
        if (model_internal::_po_detserialnumber_fkValidationFailureMessages == null)
            model_internal::calculatePo_detserialnumber_fkIsValid();

        return _po_detserialnumber_fkValidationFailureMessages;
    }

    model_internal function set po_detserialnumber_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_po_detserialnumber_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_po_detserialnumber_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_detserialnumber_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get po_idStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get po_idValidator() : StyleValidator
    {
        return model_internal::_po_idValidator;
    }

    model_internal function set _po_idIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_po_idIsValid;         
        if (oldValue !== value)
        {
            model_internal::_po_idIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_idIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get po_idIsValid():Boolean
    {
        if (!model_internal::_po_idIsValidCacheInitialized)
        {
            model_internal::calculatePo_idIsValid();
        }

        return model_internal::_po_idIsValid;
    }

    model_internal function calculatePo_idIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_po_idValidator.validate(model_internal::_instance.po_id)
        model_internal::_po_idIsValid_der = (valRes.results == null);
        model_internal::_po_idIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::po_idValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::po_idValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get po_idValidationFailureMessages():Array
    {
        if (model_internal::_po_idValidationFailureMessages == null)
            model_internal::calculatePo_idIsValid();

        return _po_idValidationFailureMessages;
    }

    model_internal function set po_idValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_po_idValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_po_idValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_idValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_total_priceStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_total_priceValidator() : StyleValidator
    {
        return model_internal::_pro_total_priceValidator;
    }

    model_internal function set _pro_total_priceIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_total_priceIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_total_priceIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_total_priceIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_total_priceIsValid():Boolean
    {
        if (!model_internal::_pro_total_priceIsValidCacheInitialized)
        {
            model_internal::calculatePro_total_priceIsValid();
        }

        return model_internal::_pro_total_priceIsValid;
    }

    model_internal function calculatePro_total_priceIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_total_priceValidator.validate(model_internal::_instance.pro_total_price)
        model_internal::_pro_total_priceIsValid_der = (valRes.results == null);
        model_internal::_pro_total_priceIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_total_priceValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_total_priceValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_total_priceValidationFailureMessages():Array
    {
        if (model_internal::_pro_total_priceValidationFailureMessages == null)
            model_internal::calculatePro_total_priceIsValid();

        return _pro_total_priceValidationFailureMessages;
    }

    model_internal function set pro_total_priceValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_total_priceValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_total_priceValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_total_priceValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get gr_gstStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get balance_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get balance_qtyValidator() : StyleValidator
    {
        return model_internal::_balance_qtyValidator;
    }

    model_internal function set _balance_qtyIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_balance_qtyIsValid;         
        if (oldValue !== value)
        {
            model_internal::_balance_qtyIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "balance_qtyIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get balance_qtyIsValid():Boolean
    {
        if (!model_internal::_balance_qtyIsValidCacheInitialized)
        {
            model_internal::calculateBalance_qtyIsValid();
        }

        return model_internal::_balance_qtyIsValid;
    }

    model_internal function calculateBalance_qtyIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_balance_qtyValidator.validate(model_internal::_instance.balance_qty)
        model_internal::_balance_qtyIsValid_der = (valRes.results == null);
        model_internal::_balance_qtyIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::balance_qtyValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::balance_qtyValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get balance_qtyValidationFailureMessages():Array
    {
        if (model_internal::_balance_qtyValidationFailureMessages == null)
            model_internal::calculateBalance_qtyIsValid();

        return _balance_qtyValidationFailureMessages;
    }

    model_internal function set balance_qtyValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_balance_qtyValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_balance_qtyValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "balance_qtyValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get supplier_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get pro_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_serialnumber_fkValidator() : StyleValidator
    {
        return model_internal::_pro_serialnumber_fkValidator;
    }

    model_internal function set _pro_serialnumber_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_serialnumber_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_serialnumber_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_serialnumber_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_serialnumber_fkIsValid():Boolean
    {
        if (!model_internal::_pro_serialnumber_fkIsValidCacheInitialized)
        {
            model_internal::calculatePro_serialnumber_fkIsValid();
        }

        return model_internal::_pro_serialnumber_fkIsValid;
    }

    model_internal function calculatePro_serialnumber_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_serialnumber_fkValidator.validate(model_internal::_instance.pro_serialnumber_fk)
        model_internal::_pro_serialnumber_fkIsValid_der = (valRes.results == null);
        model_internal::_pro_serialnumber_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_serialnumber_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_serialnumber_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_serialnumber_fkValidationFailureMessages():Array
    {
        if (model_internal::_pro_serialnumber_fkValidationFailureMessages == null)
            model_internal::calculatePro_serialnumber_fkIsValid();

        return _pro_serialnumber_fkValidationFailureMessages;
    }

    model_internal function set pro_serialnumber_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_serialnumber_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_serialnumber_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_serialnumber_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get gr_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get gr_serialnumber_fkValidator() : StyleValidator
    {
        return model_internal::_gr_serialnumber_fkValidator;
    }

    model_internal function set _gr_serialnumber_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_gr_serialnumber_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_gr_serialnumber_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "gr_serialnumber_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get gr_serialnumber_fkIsValid():Boolean
    {
        if (!model_internal::_gr_serialnumber_fkIsValidCacheInitialized)
        {
            model_internal::calculateGr_serialnumber_fkIsValid();
        }

        return model_internal::_gr_serialnumber_fkIsValid;
    }

    model_internal function calculateGr_serialnumber_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_gr_serialnumber_fkValidator.validate(model_internal::_instance.gr_serialnumber_fk)
        model_internal::_gr_serialnumber_fkIsValid_der = (valRes.results == null);
        model_internal::_gr_serialnumber_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::gr_serialnumber_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::gr_serialnumber_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get gr_serialnumber_fkValidationFailureMessages():Array
    {
        if (model_internal::_gr_serialnumber_fkValidationFailureMessages == null)
            model_internal::calculateGr_serialnumber_fkIsValid();

        return _gr_serialnumber_fkValidationFailureMessages;
    }

    model_internal function set gr_serialnumber_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_gr_serialnumber_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_gr_serialnumber_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "gr_serialnumber_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get po_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get po_qtyValidator() : StyleValidator
    {
        return model_internal::_po_qtyValidator;
    }

    model_internal function set _po_qtyIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_po_qtyIsValid;         
        if (oldValue !== value)
        {
            model_internal::_po_qtyIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_qtyIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get po_qtyIsValid():Boolean
    {
        if (!model_internal::_po_qtyIsValidCacheInitialized)
        {
            model_internal::calculatePo_qtyIsValid();
        }

        return model_internal::_po_qtyIsValid;
    }

    model_internal function calculatePo_qtyIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_po_qtyValidator.validate(model_internal::_instance.po_qty)
        model_internal::_po_qtyIsValid_der = (valRes.results == null);
        model_internal::_po_qtyIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::po_qtyValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::po_qtyValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get po_qtyValidationFailureMessages():Array
    {
        if (model_internal::_po_qtyValidationFailureMessages == null)
            model_internal::calculatePo_qtyIsValid();

        return _po_qtyValidationFailureMessages;
    }

    model_internal function set po_qtyValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_po_qtyValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_po_qtyValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_qtyValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get sales_con_codeStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get sales_con_codeValidator() : StyleValidator
    {
        return model_internal::_sales_con_codeValidator;
    }

    model_internal function set _sales_con_codeIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_sales_con_codeIsValid;         
        if (oldValue !== value)
        {
            model_internal::_sales_con_codeIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_codeIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_codeIsValid():Boolean
    {
        if (!model_internal::_sales_con_codeIsValidCacheInitialized)
        {
            model_internal::calculateSales_con_codeIsValid();
        }

        return model_internal::_sales_con_codeIsValid;
    }

    model_internal function calculateSales_con_codeIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_sales_con_codeValidator.validate(model_internal::_instance.sales_con_code)
        model_internal::_sales_con_codeIsValid_der = (valRes.results == null);
        model_internal::_sales_con_codeIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::sales_con_codeValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::sales_con_codeValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_codeValidationFailureMessages():Array
    {
        if (model_internal::_sales_con_codeValidationFailureMessages == null)
            model_internal::calculateSales_con_codeIsValid();

        return _sales_con_codeValidationFailureMessages;
    }

    model_internal function set sales_con_codeValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_sales_con_codeValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_sales_con_codeValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_codeValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get received_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get received_qtyValidator() : StyleValidator
    {
        return model_internal::_received_qtyValidator;
    }

    model_internal function set _received_qtyIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_received_qtyIsValid;         
        if (oldValue !== value)
        {
            model_internal::_received_qtyIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "received_qtyIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get received_qtyIsValid():Boolean
    {
        if (!model_internal::_received_qtyIsValidCacheInitialized)
        {
            model_internal::calculateReceived_qtyIsValid();
        }

        return model_internal::_received_qtyIsValid;
    }

    model_internal function calculateReceived_qtyIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_received_qtyValidator.validate(model_internal::_instance.received_qty)
        model_internal::_received_qtyIsValid_der = (valRes.results == null);
        model_internal::_received_qtyIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::received_qtyValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::received_qtyValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get received_qtyValidationFailureMessages():Array
    {
        if (model_internal::_received_qtyValidationFailureMessages == null)
            model_internal::calculateReceived_qtyIsValid();

        return _received_qtyValidationFailureMessages;
    }

    model_internal function set received_qtyValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_received_qtyValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_received_qtyValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "received_qtyValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get warehouse_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get warehouse_serialnumber_fkValidator() : StyleValidator
    {
        return model_internal::_warehouse_serialnumber_fkValidator;
    }

    model_internal function set _warehouse_serialnumber_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_warehouse_serialnumber_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_warehouse_serialnumber_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "warehouse_serialnumber_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get warehouse_serialnumber_fkIsValid():Boolean
    {
        if (!model_internal::_warehouse_serialnumber_fkIsValidCacheInitialized)
        {
            model_internal::calculateWarehouse_serialnumber_fkIsValid();
        }

        return model_internal::_warehouse_serialnumber_fkIsValid;
    }

    model_internal function calculateWarehouse_serialnumber_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_warehouse_serialnumber_fkValidator.validate(model_internal::_instance.warehouse_serialnumber_fk)
        model_internal::_warehouse_serialnumber_fkIsValid_der = (valRes.results == null);
        model_internal::_warehouse_serialnumber_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::warehouse_serialnumber_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::warehouse_serialnumber_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get warehouse_serialnumber_fkValidationFailureMessages():Array
    {
        if (model_internal::_warehouse_serialnumber_fkValidationFailureMessages == null)
            model_internal::calculateWarehouse_serialnumber_fkIsValid();

        return _warehouse_serialnumber_fkValidationFailureMessages;
    }

    model_internal function set warehouse_serialnumber_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_warehouse_serialnumber_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_warehouse_serialnumber_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "warehouse_serialnumber_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }


     /**
     * 
     * @inheritDoc 
     */ 
     override public function getStyle(propertyName:String):com.adobe.fiber.styles.IStyle
     {
         switch(propertyName)
         {
            default:
            {
                return null;
            }
         }
     }
     
     /**
     * 
     * @inheritDoc 
     *  
     */  
     override public function getPropertyValidationFailureMessages(propertyName:String):Array
     {
         switch(propertyName)
         {
            case("currency_name"):
            {
                return currency_nameValidationFailureMessages;
            }
            case("curr_received_qty"):
            {
                return curr_received_qtyValidationFailureMessages;
            }
            case("pro_name"):
            {
                return pro_nameValidationFailureMessages;
            }
            case("vendor_ref_no"):
            {
                return vendor_ref_noValidationFailureMessages;
            }
            case("part_number"):
            {
                return part_numberValidationFailureMessages;
            }
            case("sc_fk"):
            {
                return sc_fkValidationFailureMessages;
            }
            case("unit_price"):
            {
                return unit_priceValidationFailureMessages;
            }
            case("pro_description"):
            {
                return pro_descriptionValidationFailureMessages;
            }
            case("po_serialnumber"):
            {
                return po_serialnumberValidationFailureMessages;
            }
            case("sc_detserialnumber_fk"):
            {
                return sc_detserialnumber_fkValidationFailureMessages;
            }
            case("grn_detserialnumber"):
            {
                return grn_detserialnumberValidationFailureMessages;
            }
            case("goods_received_date"):
            {
                return goods_received_dateValidationFailureMessages;
            }
            case("gr_id"):
            {
                return gr_idValidationFailureMessages;
            }
            case("client_name"):
            {
                return client_nameValidationFailureMessages;
            }
            case("cre_datetime"):
            {
                return cre_datetimeValidationFailureMessages;
            }
            case("po_detserialnumber_fk"):
            {
                return po_detserialnumber_fkValidationFailureMessages;
            }
            case("po_id"):
            {
                return po_idValidationFailureMessages;
            }
            case("pro_total_price"):
            {
                return pro_total_priceValidationFailureMessages;
            }
            case("balance_qty"):
            {
                return balance_qtyValidationFailureMessages;
            }
            case("pro_serialnumber_fk"):
            {
                return pro_serialnumber_fkValidationFailureMessages;
            }
            case("gr_serialnumber_fk"):
            {
                return gr_serialnumber_fkValidationFailureMessages;
            }
            case("po_qty"):
            {
                return po_qtyValidationFailureMessages;
            }
            case("sales_con_code"):
            {
                return sales_con_codeValidationFailureMessages;
            }
            case("received_qty"):
            {
                return received_qtyValidationFailureMessages;
            }
            case("warehouse_serialnumber_fk"):
            {
                return warehouse_serialnumber_fkValidationFailureMessages;
            }
            default:
            {
                return emptyArray;
            }
         }
     }

}

}
